import base64
import md5
import os

def get_md5Value(feeds):
    m = md5.new()
    m.update(feeds)
    
    return m.hexdigest()
#     return m.digest()

def b64encode_file(content, altchars = None):
    return base64.encodestring(content)
#     return base64.b64encode(content, altchars)

def b64decode_file(content, altchars = None):
    return base64.b64decode(content, altchars)

def extract_filename(absName):
    return  os.path.split(absName)